package ooexercise03;

/*
public class Fish extends Animal{
    Fish(String name,int age,String colour){
        super(name,age,colour);
    }

    public void eat(){
        System.out.println(colour+"色的"+age+"岁小鱼"+name+"在吃虾米");
    }

    public void swim(){
        System.out.println(colour+"色的"+age+"岁小鱼"+name+"在游泳");
    }
}

 */


public class Fish extends Animal{
    Fish(String name,int age,String colour){
        super(name,age,colour);
    }

    void eat(){
        System.out.println(colour+"色的"+age+"岁小鱼"+name+"在吃虾米");
    }

    public void swim(){
        System.out.println(colour+"色的"+age+"岁小鱼"+name+"在游泳");
    }
}